/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.raflik.queryxml.lib.io;

import java.io.File;
import java.io.IOException;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;

/**
 *
 * @author raflik
 */
public class FileOp {
    public static FileObject createTempFile(String prefix, String suffix) {
        FileObject destFO;
        File tempFile = null;
        try {
            tempFile = File.createTempFile(prefix, suffix);
        } catch (IOException e) {
            return null;
        }
        destFO = FileUtil.toFileObject(tempFile);
        return destFO;
    }

}
